package br.com.tartarugasindomaveis.ti.corrida;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import br.com.tartarugasindomaveis.ti.app.R;

public class Corrida extends Activity {

	private Button btoNovaCorrida, btoHistorico;
	

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.corrida);

		btoNovaCorrida = (Button) findViewById(R.id.btoNovaCorrida);
		btoHistorico = (Button) findViewById(R.id.btoHistorico);
		

		btoNovaCorrida.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				// Abre a tela de com a lista de corridas
				Intent i = new Intent(Corrida.this, CorridaMapa.class);
				Corrida.this.startActivity(i);
			}
		});
		
		btoHistorico.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				// Abre a tela de com a lista de corridas
				Intent i = new Intent(Corrida.this, CorridaLista.class);
				Corrida.this.startActivity(i);
			}
		});
		
		
		
		
		// int i = getIntent().getIntExtra("i", 0);

	}

}
